home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / qbbs / qmx_120.zip / SPAZ140X.ZOO / technote.doc < prev   
Text File  |  1989-04-10  |  3KB  |  57 lines

  1.     -----------------------------------------------------------------------
  2.     SPAZ, Revision: 1.40                           Compiled: April 10, 1989
  3.  
  4.                       -= Technical and Application Notes =-
  5.                                                                            
  6.     SPAZ is Copyright (c) MCMLXXXIX by Dan A. Thomson and Andrew D. Farmer.
  7.     -----------------------------------------------------------------------
  8.  
  9.      The  following are just a  few ramblings to allow 'inquiring minds' to
  10.      see how SPAZ does it's thing.
  11.  
  12.      After  parsing the command line options,  SPAZ opens any file matching
  13.      the wildcards or specified name.  (This includes text files, binaries,
  14.      and even archives).
  15.  
  16.      It then reads  in the first 2 bytes and the  last 2 bytes of the file.
  17.      These  four bytes determine  which type of archive is being worked on.
  18.      Detailed below:
  19.  
  20.      1. Last 2 bytes = 'WC', assume DWC archive.  This is checked first  in
  21.         case an  arc file is the first file in a DWC archive.  (Which would
  22.         place a 1Ah at it's beginning....see number 4 below).
  23.  
  24.      2. First 2 bytes = 'PK', assume PKZIP. Not alot of research here,  but
  25.         the first 2 bytes of a ZIP file always seem to be PK....
  26.  
  27.      3. First 2 bytes  = 'ZO', assume ZOO format.  If this is detected,  an
  28.         attempt is  made to run LOOZ which  is a smaller extract only util.
  29.         If not found, ZOO is hunted for and executed.
  30.  
  31.      4. First byte = 1Ah. Standard ARC<tm> format.  SPAZ tries to sort this
  32.         archive by date/time, if /N was not used on command line.  The sort
  33.         process allows SPAZ  to determine if 'CRUSHED' files were included.
  34.         If so, PAK is called to undo it. If not SPAZ runs through a list of
  35.         un-archivers  in the following order:  PKUNPAK, PKXARC, PAK,  ARCE.
  36.         These are  all skipped if the /A option is used in  which case only
  37.         ARCE is attempted.
  38.  
  39.      Problem Areas:  A minor problem occurs with DWC type files.  If a file
  40.      was transfered  via modem using YModem or XModem,  it's file length is
  41.      adjusted  to the next highest block.  This  fills the end of  the file
  42.      with nulls.  As SPAZ only reads the  last 2 bytes,  it will 'miss' the
  43.      'DWC' id mark.
  44.  
  45.      One thing to remember, (which I have gotten a few queries on)  is that
  46.      SPAZ can't do a thing by itself. In order for it to work you must have
  47.      the needed Un-archivers available on the default drive or somewhere in
  48.      your specified PATH statement.
  49.  
  50.      I think that about covers it.
  51.  
  52.      Dan Thomson
  53.      Ottawa, Canada
  54.      April 10, 1989
  55.  
  56.      ----------------------------------------------------------------------
  57.